
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>惠e购</title>
    <meta name="Keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, shrink-to-fit=no, user-scalable=no">
    <!-- 引入通用css -->
    {include file="public/css" /}
    <!-- 加载单独引用的css-->
    {block name='css'}{/block}
    {if $client_type == 'wechat'}
        <!-- 引入微信插件 -->
        <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js" type="text/javascript" charset="utf-8"></script>
        <script>
            const client_type = 'wechat';
            let wechat_config = {$wechat_config|raw};
            wechat_config = JSON.parse(wechat_config);
            wx.config(wechat_config);
        </script>
    {elseif $client_type == 'alipay' /}
        <!-- 引入支付宝插件 -->
        <script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js"></script>
        <script>
            const client_type = 'alipay';
        </script>
    {else /}
        <script>
            const client_type = 'other';
            alert('[请使用微信或支付宝]');
        </script>
    {/if}
</head>
<body>
    <div id="app">
        {block name='app'}{/block}
    </div>
    <!-- 引入通用js -->
    {include file="public/js" /}
    <!-- 加载单独引用的js -->
    {block name='js'}{/block}
</body>
</html>

